<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:xhtml />
<script type="text/javascript">
    $(document).ready(function() {
        $("#helpDialog").dialog({
            autoOpen: false,
            position: "right"
        });
        $("#helpButton").click(function() {
            $("#helpDialog").dialog("open");
        });
    });
</script>
<div id="pathwayList" class="content">
    <h2>
        Pathway List <span id="helpButton" class="ui-icon help ui-icon-info">&nbsp;&nbsp;&nbsp;</span>
    </h2>
    <ul>
        <logic:iterate id="kegPathway" name="pathwayListForm" property="kegPathwayList">
            <li>
                <a href="<html:rewrite action="keggPathway"/>?pathwayID=<bean:write name="kegPathway" property="id"/>"
                   title="<logic:iterate id="kegGene" name="kegPathway" property="geneList"><bean:write name="kegGene" property="name"/> </logic:iterate>">
                    <bean:write name="kegPathway" property="name"/>
                </a>
            </li>
        </logic:iterate>
    </ul>
</div>
<div id="helpDialog" title="Pathway Search Results">
    <p>
        The <em>Pathway Search Results</em> page contains a list of Kegg pathways that selected genes and/or SNPs were found to be involved in.
        Moving the mouse over a pathway link brings up a tool-tip listing the genes found within the pathway.
    </p>
    <p>
        Clicking on a pathway takes you to the corresponding <em>Kegg Pathway</em> page, where user may view an image of the the Kegg
        pathway, select genes of interest, view the corresponding SNP list page for selected genes, view the associations plot
        for selected genes, and/or select two SNPs to perform a SNP-SNP interaction test.
    </p>
</div>